Fox's Git Mirrors
scripts/ci/setup-revive.sh 83609bcb589eb3cfc35b98ecc0b3327b2ae99d77 (83609bcb) Text, 377 B
#!/bin/sh
# Install revive from a tagged module version (requires Go on PATH).
# Usage: setup-revive.sh [module_version]
set -eu
. "$(dirname "$0")/priv.sh"
export PATH="/usr/local/go/bin:$PATH"
VER="${1:-v1.15.0}"
run_priv env PATH="$PATH" GOBIN=/usr/local/bin GOFLAGS= GOPROXY=https://proxy.golang.org,direct go install "github.com/mgechev/revive@${VER}"
command -v revive
Served by rngit 1.5.2 - Generated in 0.02s